home *** CD-ROM | disk | FTP | other *** search
- Path: news.uni-jena.de!news
- From: mkt@isun04.inf.uni-jena.de (Tilo Koerbs)
- Newsgroups: comp.lang.c++
- Subject: Q. only for ostrstream experts!!!
- Date: 7 Feb 1996 14:00:13 GMT
- Organization: Lehrstuhl fuer Rechnerarchitektur- und kommunikation, FSU Jena
- Message-ID: <4fab9d$1rp@fsuj01.rz.uni-jena.de>
- Reply-To: mkt@isun04.inf.uni-jena.de
- NNTP-Posting-Host: isun07.inf.uni-jena.de
-
-
- Consider:
- ostrstream buf(); // dynamic buffer
- buf << "something" << ends;
- char *p = buf.str(); // freeze buffer and return a pointer to it
-
- Now: How do I delete the pointer p, using 'delete' or using 'delete[]'?
-
- Please: Post only an answer if you are really sure! And consider: Even different
- books give different answers!
-
- So if you know a standard's paper or the description of the original
- implementation or something else, please post!
-
- Thanks and bye.
- Tilo Koerbs, mkt@uni-jena.de
-
-
-